package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-跟进方式
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 11:03
 * @since v1.0
 */
@Getter
public enum CommunicateTypeEnum {

    /**
     * 跟进方式
     */
    FACE_TO_FACE("1", "enum.communicateType.name.face_to_face","faceToFace"),
    TELEPHONE_CALL("2", "enum.communicateType.name.telephone_call","telephoneCall"),
//    PROJECT_LOG("5", "项目日志", "projectLog"),
    INTERNET_VISIT("6", "enum.communicateType.name.internet_visit","internetVisit"),
    ;
    private String code;
    private String name;
    private String attr;

    CommunicateTypeEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
